<template>
  <div id="app">
    <router-view class="main" />
    <van-tabbar v-model="active">
      <van-tabbar-item icon="home-o" :to="{ name: 'Home' }"
        >发现</van-tabbar-item
      >
      <van-tabbar-item icon="search" :to="{ name: 'Video' }"
        >视频</van-tabbar-item
      >
      <van-tabbar-item icon="friends-o" :to="{ name: 'User' }"
        >我的</van-tabbar-item
      >
      <van-tabbar-item icon="setting-o" :to="{ name: 'Admin' }"
        >账号</van-tabbar-item
      >
    </van-tabbar>
  </div>
</template>
<script>
export default {
  data() {
    return {
      active: 0,
    };
  },
};
</script>
<style>
* {
  margin: 0;
  padding: 0;
}
html,
body,
#app {
  width: 100%;
  height: 100%;
}
img {
  max-width: 100%;
}
#app {
  display: flex;
  flex-direction: column;
}
.main {
  flex: 1;
  overflow: auto;
}
</style>
